var _loc2_ = new mx.transitions.Tween(_root.items_m.items_move["items_" + selected_menu],"_y",mx.transitions.easing.Back.easeOut,_root.items_m.items_move["items_" + selected_menu]._y,-70,15);
var _loc3_ = new mx.transitions.Tween(items_m.items_move["items_" + selected_menu],"_y",mx.transitions.easing.Back.easeOut,items_m.items_move["items_" + selected_menu]._y,0,15);
};
var win_width = 80;
var win_height = 37;
make_bt = function()
{
var i = 0;
while(i < 8)
{
_root["v_bt" + i].onRollOver = function()
{
this.rollover.gotoAndStop(2);
};
_root["v_bt" + i].onRollOut = function()
{
this.rollover.gotoAndStop(1);
};
_root["v_bt" + i].onRelease = function()
{
this.gotoAndStop(1);
};
_root["v_bt" + i].onReleaseOutside = function()
{
this.gotoAndStop(1);
};
_root["v_bt" + i].onPress = function()
{
so4.start(0,1);
_root.item_out_blink.gotoAndPlay(2);
this.gotoAndStop(2);
var s_item = parseInt(this._name.slice(4,5));
i_name = eval("a_items" + selected_menu)[s_item];
_root.attachMovie(i_name,i_name,400);
_root[i_name].setMask(item_mask);
var i_x = _root[i_name]._width;
var i_y = _root[i_name]._height;
var i_xm = win_width - i_x;
var i_ym = win_height - i_y;
var xx = Math.round(win_width / i_x * 100);
var yy = Math.round(win_height / i_y * 100);
if(xx > 100)
{
xx = 100;
}
if(yy > 100)
{
yy = 100;
}
if(i_xm < 0 && i_ym < 0)
{
if(i_xm < i_ym)
{
_root[i_name]._xscale = xx;
_root[i_name]._yscale = xx;
}
else
{
_root[i_name]._xscale = yy;
_root[i_name]._yscale = yy;
}
}
else if(i_xm < 0)
{
_root[i_name]._xscale = xx;
_root[i_name]._yscale = xx;
}
else
{
_root[i_name]._xscale = yy;
_root[i_name]._yscale = yy;
}
_root[i_name]._x = 175;
_root[i_name]._y = 280;
_root[i_name].onPress = function()
{
_root.item_out_blink.gotoAndStop(1);
this.setMask(null);
this._xscale = 100;
this._yscale = 100;
this.startDrag();
};
_root[i_name].onRelease = function()
{
so3.start(0,1);
if(this._droptarget.slice(0,4) == "/ava")
{
var _loc4_ = this._name.length;
var _loc5_ = parseInt(this._name.slice(_loc4_ - 1,_loc4_));
var _loc3_ = this._name.slice(0,3);
if(_loc3_ == "up_")
{
_root.ava.under_up._visible = false;
if(_root.ava.one_m._currentframe != 1)
{
_root.ava.under_down._visible = true;
}
_root.ava.one_m.gotoAndStop(1);
}
else if(_loc3_ == "dow")
{
_root.ava.under_down._visible = false;
if(_root.ava.one_m._currentframe != 1)
{
_root.ava.under_up._visible = true;
}
_root.ava.one_m.gotoAndStop(1);
}
else if(_loc3_ == "one")
{
_root.ava.up__m.gotoAndStop(1);
_root.ava.dow_m.gotoAndStop(1);
_root.ava.under_up._visible = false;
_root.ava.under_down._visible = false;
}
_root.ava[_loc3_ + "_m"].gotoAndStop(_loc5_ + 2);
this.unloadMovie();
}
else
{
this.onEnterFrame = function()
{
this._xscale -= 25;
this._yscale -= 25;
if(this._xscale < 30)
{
attachMovie("item_del_m","item_del_m",99999);
item_del_m._x = this._x;
item_del_m._y = this._y;
delete this.onEnterFrame;
this.unloadMovie();
}
};
}
this.stopDrag();
};
_root[i_name].onReleaseOutside = function()
{
if(this._droptarget.slice(0,4) == "/ava")
{
var _loc4_ = this._name.length;
var _loc5_ = parseInt(this._name.slice(_loc4_ - 1,_loc4_));
var _loc3_ = this._name.slice(0,3);
if(_loc3_ == "up_")
{
_root.ava.under_up._visible = false;
if(_root.ava.one_m._currentframe != 1)
{
_root.ava.under_down._visible = true;
}
_root.ava.one_m.gotoAndStop(1);
}
else if(_loc3_ == "dow")
{
_root.ava.under_down._visible = false;
if(_root.ava.one_m._currentframe != 1)
{
_root.ava.under_up._visible = true;
}
_root.ava.one_m.gotoAndStop(1);
}
else if(_loc3_ == "one")
{
_root.ava.up__m.gotoAndStop(1);
_root.ava.dow_m.gotoAndStop(1);
_root.ava.under_up._visible = false;
_root.ava.under_down._visible = false;
}
_root.ava[_loc3_ + "_m"].gotoAndStop(_loc5_ + 2);
this.unloadMovie();
}
else
{
this.onEnterFrame = function()
{
this._xscale -= 25;
this._yscale -= 25;
if(this._xscale < 30)
{
attachMovie("item_del_m","item_del_m",99999);
item_del_m._x = this._x;
item_del_m._y = this._y;
delete this.onEnterFrame;
this.unloadMovie();
}
};
}
this.stopDrag();
};
item_out(i_name);
};
i++;
}
};
item_out = function(i_name)
{
var _loc3_ = new mx.transitions.Tween(_root[i_name],"_y",mx.transitions.easing.Bounce.easeInOut,_root[i_name]._y,390,10);
};
restore_bt.onRollOver = function()
{
so1.start(0,1);
this.restore_bt_rollover.gotoAndStop(2);
};
restore_bt.onRollOut = function()
{
this.restore_bt_rollover.gotoAndStop(1);
};
restore_bt.onPress = function()
{
so1.start(0,1);
this.gotoAndStop(2);
ava_int();
};
restore_bt.onRelease = function()
{
this.gotoAndStop(1);
};
ending_bt.onRollOver = function()
{
so1.start(0,1);
this.ending_bt_rollover.gotoAndStop(2);
};
ending_bt.onRollOut = function()
{
this.ending_bt_rollover.gotoAndStop(1);
};
ending_bt.onPress = function()
{
so1.start(0,1);
_root[i_name].removeMovieClip();
ava_save();
this.gotoAndStop(2);
};
ending_bt.onRelease = function()
{
this.gotoAndStop(1);
gotoAndStop(5);
};
ava_int = function()
{
with(ava)
{
bag_m.gotoAndStop(1);
ear_m.gotoAndStop(1);
nec_m.gotoAndStop(1);
up__m.gotoAndStop(1);
sho_m.gotoAndStop(1);
gla_m.gotoAndStop(1);
soc_m.gotoAndStop(1);
dow_m.gotoAndStop(1);
one_m.gotoAndStop(1);
hai_m.gotoAndStop(1);
under_up._visible = true;
under_down._visible = true;
}
};
ava_save = function()
{
s_sock = ava.soc_m._currentframe;
s_shoes = ava.sho_m._currentframe;
s_down = ava.dow_m._currentframe;
s_up = ava.up__m._currentframe;
s_one = ava.one_m._currentframe;
s_bag = ava.bag_m._currentframe;
s_neck = ava.nec_m._currentframe;
s_ear = ava.ear_m._currentframe;
s_glass = ava.gla_m._currentframe;
s_hair = ava.hai_m._currentframe;
};
make_menu_bt();
var buy_str = "";
var game_name = "G270032";
var game_price = 3500;
var buy_3 = ["G250217","G250218","G250219","G250220"];
var buy_4 = ["G240270","G240271","G240272","G240273","G240274","G240275","G240276","G240277","G240278"];
var buy_5 = ["G230276","G230277","G230278","G230279","G230280","G230281","G230282","G230283","G230284"];
var buy_6 = ["G220155","G220156","G220157","G220158"];
var buy_7 = ["G210085","G210086","G210087"];
var buy_8 = ["G200049"];
var buy_11 = ["G170084","G170085","G170086","G170087"];